<?php
namespace app\erp\validate;
use think\Validate;
class Adsenserule extends Validate{
    protected $rule = [
        'adsense_name' => 'require|unique:adsense,adsense_name^partner_id'
    ];
    
    protected $message = [
        'adsense_name.require' => '广告位名称必须填写',
        'adsense_name.unique' => '广告位分类名称已存在',
    ];
}